package com.baiyang.server.config.provider;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.security.web.authentication.WebAuthenticationDetails;

public class MyWebAuthenticationDetails extends WebAuthenticationDetails{

	private HttpSession session;
	
	public MyWebAuthenticationDetails(HttpServletRequest request) {
		super(request);
		this.setSession(request.getSession(false));
	}

	public HttpSession getSession() {
		return session;
	}

	public void setSession(HttpSession session) {
		this.session = session;
	}

	private static final long serialVersionUID = 1L;

}
